package com.zhiyou100.blog.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-10-22 10:11
 */
public class Title implements Serializable {


    private Integer tid;
    private String tname;
    private String tcontent;
    private Date tcreateTime;
    private Integer tguanZhu;
    private Integer uid;
    private User user;
    private List<Message> messages; //留言信息

    @Override
    public String toString() {
        return "Title{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", tcontent='" + tcontent + '\'' +
                ", tcreateTime=" + tcreateTime +
                ", tguanZhu=" + tguanZhu +
                ", uid=" + uid +
                ", user=" + user +
                ", messages=" + messages +
                '}';
    }

    public List<Message> getMessages() {
        return messages;
    }

    public void setMessages(List<Message> messages) {
        this.messages = messages;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTcontent() {
        return tcontent;
    }

    public void setTcontent(String tcontent) {
        this.tcontent = tcontent;
    }

    public Date getTcreateTime() {
        return tcreateTime;
    }

    public void setTcreateTime(Date tcreateTime) {
        this.tcreateTime = tcreateTime;
    }

    public Integer getTguanZhu() {
        return tguanZhu;
    }

    public void setTguanZhu(Integer tguanZhu) {
        this.tguanZhu = tguanZhu;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Title(Integer tid, String tname, String tcontent, Date tcreateTime, Integer tguanZhu, Integer uid,
                 User user) {
        super();
        this.tid = tid;
        this.tname = tname;
        this.tcontent = tcontent;
        this.tcreateTime = tcreateTime;
        this.tguanZhu = tguanZhu;
        this.uid = uid;
        this.user = user;
    }

    public Title() {
        super();
    }

    public Title(String tname, String tcontent, Date tcreateTime, Integer tguanZhu, Integer uid) {
        super();
        this.tname = tname;
        this.tcontent = tcontent;
        this.tcreateTime = tcreateTime;
        this.tguanZhu = tguanZhu;
        this.uid = uid;
    }
}
